﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="MailTemplate.aspx.cs"
    Inherits="PPAP.Web.Master.MailTemplate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />
    <link href="kindeditor/plugins/code/prettify.css" rel="stylesheet" type="text/css" />
    <script src="kindeditor/kindeditor.js" type="text/javascript"></script>
    <script src="kindeditor/lang/en.js" type="text/javascript"></script>
    <script src="kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#content1', {
                cssPath: '../../kindeditor/plugins/code/prettify.css',
                uploadJson: '../../kindeditor/upload_json.ashx',
                fileManagerJson: '../../kindeditor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
            //  prettyPrint();
        });
    </script>
    <script src="../../js/jquery-1.2.6.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="700px">
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Template Name:
                </td>
                <td>
                    <asp:TextBox autocomplete="off"   ID="txtName" runat="server"></asp:TextBox>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Mail Title:
                </td>
                <td>
                    <asp:TextBox autocomplete="off"   ID="txtTitle" runat="server" Width="300px"></asp:TextBox>
                </td>
                <td style="font-weight: bold; color: #2E8AC5; display: none;">
                    Use:
                </td>
                <td style="display: none;">
                    <asp:RadioButton ID="rbYes" runat="server" GroupName="s" Text="Yes" />
                    <asp:RadioButton ID="rbNo" runat="server" Checked="True" GroupName="s" Text="No" />
                </td>
            </tr>
            <tr><td style="font-weight: bold; color: #2E8AC5;">Recipients:</td><td>
                    <asp:TextBox autocomplete="off"   ID="txtRecipients" runat="server"></asp:TextBox>
                </td><td style="font-weight: bold; color: #2E8AC5;">Opportunity:</td><td>
                    <asp:TextBox autocomplete="off"   ID="txtOpportunity" runat="server" Width="300px"></asp:TextBox>
                </td><td></td></tr>
        </table>
        <textarea id="content1" cols="100" rows="8" style="width: 700px; height: 450px; visibility: hidden;"
            runat="server"></textarea>
    </div>
    <div align="center" style="width: 700px;">
        <asp:Button ID="Button1" runat="server" CssClass="button" Text="Save" OnClick="Button1_Click"
            OnClientClick="return confirm('Are you sure you want to save?');" /></div>
    </form>
</body>
</html>
